/*
 * @Author: llch
 * @Date: 2020-06-01 11:23:35
 * @LastEditTime: 2020-06-04 11:33:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \idiom_demo\assets\script\SceneManager.ts
 */ 

class SceneManager {
    // 保证单例
    public static readonly Instance: SceneManager = new SceneManager();
    
    // 构造函数
    private constructor() {

    }

    // 进入menu场景
    public enterMenuScene() {
        cc.director.loadScene("menu");
    }

    // 进入game场景
    public enterGameScene() {
        cc.director.loadScene("game");
    }
}

export const SM = SceneManager.Instance;